package com.yhao.exception;

/**
 * @author yhao
 * @create 2017-11-19 13:33
 * 注：spring 对于 RuntimeException 异常才会进行事务回滚。
 */

public class BaseException extends RuntimeException {

    public BaseException() {
    }

    public BaseException(int code, String massage) {
        this.code = code;
        this.massage = massage;
    }

    private int code;
    private String massage;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMassage() {
        return massage;
    }

    public void setMassage(String massage) {
        this.massage = massage;
    }
}
